<?php
/**
 * Author: zhangkang
 * Date: 2016/12/2814:02
 * Description:
 */

require 'common.inc.php';
set_cookie('mobile', 'pc', $DT_TIME + 30*86400);
$foot = '';
//$head_title = $L['device_title'].$DT['seo_delimiter'].$head_title;
$openid = decrypt(get_cookie('weixin_openid'), DT_KEY.'WXID');
$lists = array();
$table_weixin_user = $DT_PRE.'weixin_user';
$user = $db->get_one("SELECT * FROM {$table_weixin_user} WHERE openid = '".$openid."'");

if($user) {
    $DT['filtercategory']   = push_filtercategory($user);            //获取用户的行业信息
    $DT['filteraddress']    = push_filteraddress($user);             //获取推送的分类信息
    $DT['filtertender']     = push_filtertender($user);              //获取推送的招标行业
    $DT['wx_user']  		= $user;
}
// include template('zbdy', 'mobile');
include template('zbdy', 'mobile');
if(DT_CHARSET != 'UTF-8') toutf8();
?>